function login(){
	var data = {};
	data.name=$("#name").val();
	data.password=hex_md5($("#pass").val());
	
	$.ajax({
		url:ctx+"/forum/login/doLogin",
		data: data,
		success:function(data){
			if(data.code=='0'){
				window.location= ctx+ "/forum/index/";
			}else{
				alert(data.msg);
			}
		}
	});
}